﻿using System;
using Model.Base;
using Model.Config;
using Model.AuthModel;
namespace Model.Cms
{
    /// <summary>
    /// 模型层，内容管理，资源
    /// </summary>
    public class ResourceInfo : BaseSystemInfo
    {
        /// <summary>
        /// 资源编号
        /// </summary>
        public int ResourceID { get; set; }
        /// <summary>
        /// 资源类别
        /// </summary>
        public TermInfo ResourceType { get; set; }
        /// <summary>
        /// 资源名
        /// </summary>
        public string ResourceName { get; set; }
        /// <summary>
        /// 下载链接
        /// </summary>
        public string ResourceLink { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public string ContentSize { get; set; }
        /// <summary>
        /// 资源类型
        /// </summary>
        public string ContentType { get; set; }
        /// <summary>
        /// 资源扩展名
        /// </summary>
        public string ContentExtension { get; set; }
    }

    /// <summary>
    /// 模型层，内容管理，资源搜索
    /// </summary>
    public class ResourceCondition : BaseCondition 
    {
        /// <summary>
        /// 资源类别编号
        /// </summary>
        public int ResourceTypeID { get; set; }

        /// <summary>
        /// 类别标签
        /// </summary>
        public string ResourceTypeLabel { get; set; }
    }
}
